package com.ruoyi.project.orderSystem.mapper;

import java.util.List;

import com.ruoyi.project.orderSystem.domain.OrderStationItem;
import com.ruoyi.project.orderSystem.domain.vo.OrderStationItemVO;
import org.apache.ibatis.annotations.Param;

/**
 * 工单站点巡检项Mapper接口
 *
 * @author wangshuo
 * @date 2021-01-24
 */
public interface OrderStationItemMapper {
    /**
     * 查询工单站点巡检项
     *
     * @param id 工单站点巡检项ID
     * @return 工单站点巡检项
     */
    public OrderStationItem selectOrderStationItemById(Long id);

    /**
     * 查询工单站点巡检项列表
     *
     * @param orderStationItem 工单站点巡检项
     * @return 工单站点巡检项集合
     */
    public List<OrderStationItem> selectOrderStationItemList(OrderStationItem orderStationItem);

    /**
     * 新增工单站点巡检项
     *
     * @param orderStationItem 工单站点巡检项
     * @return 结果
     */
    public int insertOrderStationItem(OrderStationItem orderStationItem);

    /**
     * 修改工单站点巡检项
     *
     * @param orderStationItem 工单站点巡检项
     * @return 结果
     */
    public int updateOrderStationItem(OrderStationItem orderStationItem);

    /**
     * 删除工单站点巡检项
     *
     * @param id 工单站点巡检项ID
     * @return 结果
     */
    public int deleteOrderStationItemById(Long id);

    /**
     * 批量删除工单站点巡检项
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteOrderStationItemByIds(Long[] ids);

    int batchInsert(@Param("orderStationItems") List<OrderStationItem> orderStationItems);

    OrderStationItemVO getOneByOrderStationId(@Param("orderStationId") Long orderStationId);
}
